:root {
  font-size: 100%;
  font-family: SegoeUI, Helvetica, Arial, sans-serif;
}

#container {
  width: 96vw;
  height: 96vh;
  margin: 2vh 2vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#container h1 {
  font-size: 1.4rem;
  margin: 0.6rem 0;
}

#bot {
  position: relative;
  flex: 1;
  border: 1px solid #0464b1;
}

form {
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  margin-bottom: 4px;
  padding-left: 2px;
}
form .field-groups { display: flex; }
form .field-groups:first-child .field-group {
  flex: 1;
}

form .field-group.right label.text {
  display: flex;
  align-items: center;
}
form .field-group.right label a {
  display: inline-block;
  flex: 1;
  text-align: right;
}
form .field-group.right label input {
  display: inline-block;
  flex: 1;
  margin-left: 8px;
  padding: 3px 5px;
  font-size: 0.9rem;
}
form .field-group.right label:last-of-type {
  text-align: right;
  margin-top: 0.6rem;
}
form .field-group.right a {
  color: #0078d7;
  text-decoration: none;
}

/* --- Translator section --- */
form .field-groups.audio { margin-top: 8px; }
form .field-groups.audio > .field-group > div {
  margin-left: 1.2rem;
}
form .field-groups.audio > .field-group > div > label {
  margin-top: 8px;
}
form .field-groups.audio > .field-group > div > label span {
  margin-right: 0.6rem;
}

.hidden { display: none !important; }

#applyBtn, #submit-audio {
  background-color: #0078d7;
  color: white;
  border: 0 none;
  font-family: SegoeUI, Helvetica, Arial, sans-serif;
  font-weight: 400;
  padding: 0.4rem 1rem 0.6rem;
  transition: background-color 0.4s;
}
#applyBtn:hover, #submit-audio:hover {
  background-color: #035ca2;
}

.translator-submit-audio .message {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
}

#submit-audio {
  margin-top: 6px;
  display: inline-block;
}
.loading-spinner #submit-audio {
  display: none;
}

/* --- Loading Spinner --- */
/* Courtesy of Tobias Ahlin: http://tobiasahlin.com/spinkit/ */
.loading-spinner .sk-circle,
.loading-spinner .message {
  display: block;
}
.sk-circle {
  margin: 10px 0 0 44px;
  width: 40px;
  height: 40px;
  position: relative;
  display: none;
}
.sk-circle .sk-child {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.sk-circle .sk-child:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #0078d7;
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
          animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}
.sk-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
      -ms-transform: rotate(30deg);
          transform: rotate(30deg); }
.sk-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
      -ms-transform: rotate(60deg);
          transform: rotate(60deg); }
.sk-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg); }
.sk-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
      -ms-transform: rotate(120deg);
          transform: rotate(120deg); }
.sk-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
      -ms-transform: rotate(150deg);
          transform: rotate(150deg); }
.sk-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg); }
.sk-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
      -ms-transform: rotate(210deg);
          transform: rotate(210deg); }
.sk-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
      -ms-transform: rotate(240deg);
          transform: rotate(240deg); }
.sk-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
      -ms-transform: rotate(270deg);
          transform: rotate(270deg); }
.sk-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
      -ms-transform: rotate(300deg);
          transform: rotate(300deg); }
.sk-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
      -ms-transform: rotate(330deg);
          transform: rotate(330deg); }
.sk-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
          animation-delay: -1.1s; }
.sk-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
          animation-delay: -1s; }
.sk-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
          animation-delay: -0.9s; }
.sk-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
          animation-delay: -0.8s; }
.sk-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
          animation-delay: -0.7s; }
.sk-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
          animation-delay: -0.6s; }
.sk-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
          animation-delay: -0.5s; }
.sk-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
          animation-delay: -0.4s; }
.sk-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s; }
.sk-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
          animation-delay: -0.2s; }
.sk-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
          animation-delay: -0.1s; }

@-webkit-keyframes sk-circleBounceDelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
  } 40% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes sk-circleBounceDelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
            transform: scale(0);
  } 40% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}